package com.song.study.spring.Entity;

/**
 * @Author ZhangGuisong
 * @Date 2021/4/24-20:38
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car {
    private String name;
    public void init(){
        System.out.println("careata  a car ok  -->  init-method");
    }
    public void destroy(){
        System.out.println("destroy a car ok --->destroy-method");
    }
}
